package com.syt.tank.message;

import flex.messaging.io.amf.ASObject;

public class AddPlayerMsg extends AbstractMessage {

	private Integer x;
	private Integer y;
	private boolean isMove = false;

	public AddPlayerMsg(String playerFrom, String playerTo) {
		super(playerFrom, playerTo, MessageIds.ADD_PALYER_ID);
	}

	@Override
	ASObject getAsObject() {
		ASObject as = new ASObject();
		as.put("x", this.x);
		as.put("y", this.y);
		return as;
	}

	public Integer getX() {
		return x;
	}

	public void setX(Integer x) {
		this.x = x;
	}

	public Integer getY() {
		return y;
	}

	public void setY(Integer y) {
		this.y = y;
	}

	public boolean isMove() {
		return isMove;
	}

	public void setMove(boolean isMove) {
		this.isMove = isMove;
	}
}
